/**
 * jims
 */
package com.jims.master.modules.operation.service;


import java.util.List;

import com.jims.master.modules.operation.dao.OperationRoomDao;
import com.jims.master.modules.operation.entity.OperationRoom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;


/**
 * Service
 * @author DT
 * @version 2017-04-06
 */
@Service
@Transactional(readOnly = true)
public class OperationRoomService extends CrudService<OperationRoomDao, OperationRoom> {
	@Autowired
	private OperationRoomDao operationRoomDao;
	public OperationRoom get(String id) {
		return super.get(id);
	}
	
	public List<OperationRoom> findList(OperationRoom operationRoom) {
		return super.findList(operationRoom);
	}
	public List<OperationRoom> findByRoomNo(OperationRoom operationRoom) {
		return operationRoomDao.findByRoomNo(operationRoom);
	}


	public Page<OperationRoom> findPage(Page<OperationRoom> page, OperationRoom operationRoom) {
		return super.findPage(page, operationRoom);
	}
	
	@Transactional(readOnly = false)
	public int save(OperationRoom operationRoom) {
		return super.save(operationRoom);
	}
	
	@Transactional(readOnly = false)
	public int delete(OperationRoom operationRoom) {
		return super.delete(operationRoom);
	}
	
}